
public class booleanSchedule {
	
	private final int numSlots = 56;

	private boolean schedule[] = new boolean[numSlots];
	
	public booleanSchedule()
	{
		for (int count=0; count < numSlots; count++)
		{
			schedule[count] = false;
		}
	}
	
	public boolean getAvailable(int slot)
	{
		return schedule[slot];
	}
	
	public void generateSchedule(milTimeSchedule studentSchedule)
	{
		int slotCount = studentSchedule.getNumSlots();
		
		int startTime = studentSchedule.getStart(0);
		int endTime = studentSchedule.getEnd(0);
		
		for (int count = (startTime-800)/25;count<(endTime-800)/25;count+=4)
		{
			schedule[count] = true;
			schedule[count+1] = true;
			schedule[count+2] = true;
			schedule[count+3] = true;		
		}
	}
}
